package com.logic.config.netty.web.model.message;

import cn.hutool.json.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ActionBody extends AuthenticationBody{
    private Integer actionType;
    private Integer mainRoute;
    private Integer subRoute;
    private JSONObject data;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class PlayerReplyMessage {
        /**
         * 回复的信息id
         */
        private int messageCode;
        /**
         * 状态码
         * 0: 拒绝
         * 1: 同意
         */
        private int status;
    }
}
